package org.dromara.xhlj.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.xhlj.domain.XhljEnterprise;
import org.dromara.xhlj.domain.XhljVenues;
import org.dromara.xhlj.domain.XhljConferenceInfo;
import org.dromara.xhlj.domain.XhljEnterpriseProduct;
import org.dromara.xhlj.domain.XhljTopicActivityCollect;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreType;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.dromara.common.core.utils.tree.TreeCruxField;
import org.dromara.wx.domain.WxUser;
import org.dromara.wx.domain.vo.WxUserVo;
import org.dromara.system.domain.SysUser;
import org.dromara.system.domain.vo.SysUserVo;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.springframework.transaction.annotation.Transactional;
import java.util.Date;
import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 企业展商视图对象 xhlj_enterprise
 *
 * @author yf
 * @date 2024-07-28
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = XhljEnterprise.class)
public class XhljEnterpriseVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 企业ID
     */
    @ExcelProperty(value = "企业ID")
    private Integer enterpriseId;
    /**
     * 企业名称
     */
    @ExcelProperty(value = "企业名称")
    private String enterpriseName;
    /**
     * 会场ID
     */
    @ExcelProperty(value = "会场ID")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Translation(type = XhljVenues.TRANS_ID_TO_VO, mapper = "venuesId")
    private XhljVenuesVo venues;
    private Integer venuesId;
    /**
     * 大会id
     */
    @ExcelProperty(value = "大会id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Translation(type = XhljConferenceInfo.TRANS_ID_TO_VO, mapper = "conferenceInfoId")
    private XhljConferenceInfoVo conferenceInfo;
    private Integer conferenceInfoId;
    /**
     * 创建人sys_user（大会管理员/活动负责人）
     */
    @ExcelProperty(value = "创建人sys_user")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Translation(type = SysUser.TRANS_ID_TO_VO, mapper = "createBy")
    private SysUserVo sysUser;
    private Integer createBy;
    /**
     * 企业介绍
     */
    @ExcelProperty(value = "企业介绍")
    private String backgroundContent;
    /**
     * 展商风采展示图
     */
    @ExcelProperty(value = "展商风采展示图")
    private String enterpriseVideoImage;
    /**
     * 展商视频
     */
    @ExcelProperty(value = "展商视频")
    private String enterpriseFile;
    /**
     * 营业执照号
     */
    @ExcelProperty(value = "营业执照号")
    private String businessLicenseNumber;
    /**
     * 成立日期
     */
    @ExcelProperty(value = "成立日期")
    private Date establishmentDate;
    /**
     * 行业类型（0=网路安全，1=AI人工智能）
     */
    @ExcelProperty(value = "行业类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "industry_types")
    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, other = "industry_types", mapper = "industryTypes")
    private String industryTypesDictData;
    private String industryTypes;
    /**
     * 成就标签（0=世界企业500，1=互联网领军企业）
     */
    @ExcelProperty(value = "成就标签", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "achieve_tags")
    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, other = "achieve_tags", mapper = "achieveTags")
    private String achieveTagsDictData;
    private String achieveTags;
    /**
     * 展商地址地图
     */
    @ExcelProperty(value = "展商地址地图")
    private String enterpriseMap;
    /**
     * 展商开始时间
     */
    @ExcelProperty(value = "展商开始时间")
    private Date startTime;
    /**
     * 展商结束时间
     */
    @ExcelProperty(value = "展商结束时间")
    private Date endTime;
    /**
     * 展商地址
     */
    @ExcelProperty(value = "展商地址")
    private String enterpriseLocation;
    /**
     * 联系人（多个联系人用逗号分割）
     */
    @ExcelProperty(value = "联系人")
    private String contactPersons;
    /**
     * 联系电话
     */
    @ExcelProperty(value = "联系电话")
    private String contactPhone;
    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 打卡二维码
     */
    @ExcelProperty(value = "打卡二维码")
    private String finishImage;
    /**
     * 展商产品 子列表
     */
    @JsonIgnore
    @Translation(type = XhljEnterpriseProduct.TRANS_ID_TO_VO_LIST, mapper = "enterpriseId" , other = "enterprise_id")
    private List<XhljEnterpriseProductVo> xhljEnterpriseProductVoList;
    /**
     * 活动订阅 子列表
     */
    @Translation(type = XhljTopicActivityCollect.TRANS_ID_TO_VO_LIST, mapper = "enterpriseId" , other = "enterprise_id")
    private List<XhljTopicActivityCollectVo> xhljTopicActivityCollectVoList;
}
